/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author c0909h1169
 */
class Thread1 extends Thread
{
    public void run()
    {

        int i;
        int j;
        int k;
        for(k=0;k<5;k++)
        {
        for(i =1;i<=5;i++)
        {
             for(j=1; j<=5-i; j++)
            {
                System.out.print(" ");

            }

            //int max = 2*i-1;

            for(j=1; j<=2*i-1; j++)
            {
                System.out.print("*");
            }
            
	System.out.println();

        }
        }
        
    }
}
class Thread2 extends Thread
{
    @Override
    public void run()
    {
    String[] str={"Yeu to quoc, yeu dong bao", "Hoc tap tot, lao dong tot","Doan ket tot, ky luat tot","Giu gin ve sinh that tot","Khiem tot that tha dung cam"};
    int num;
    int i;
    for(i=0,num=0;i<5;i++,num++)
    {
        System.out.println((num+1)+"- "+str[i]);

    }
 
    }
}

class Thread3 extends Thread
{
    @Override
    public void run()
    {
        int i=1;
        int j=1;
        int x = i+j;
        for(i=1;i<50;i++)
        {
   
            i=j;
            j=x;
            x= i+j;
            System.out.println(i);

        }
    }
}

public class Homework2 {
    public static void main(String Args[])
    {
        Thread1 t1 = new Thread1();
        Thread2 t2 = new Thread2();
        Thread3 t3 = new Thread3();
        t1.start();
        t2.start();
        t3.start();


    }

}
